/**
 * Entity
 * @author hoang.pt
 * @version $Id: NameThreadTest.java 101 2010-08-28 15:50:21Z phantichhoang $
 */

package snippet.theory1;

/**
 * Test API for setName() and getName()
 * @author hoang.pt
 */
public class NameThreadTest {

    public NameThreadTest() {
    }


    public static void main(String[] a) {
        //init and invoke thread
        NameThread nt = new NameThread("hoang.pt");
        nt.start();

        //count thread no
        System.out.println(Thread.activeCount());
        Thread.currentThread();
		System.out.println(Thread.activeCount());

    }
}
